using System;
using System.Text;

namespace A4G.Core
{
	public class Sequence
	{
		public Sequence(string name)
			: this(name, string.Empty)
		{
		}
		
		public Sequence(string name, string sequenceString)
		{
			_name = name;
			_sequenceBuilder.Append(sequenceString);
		}

		private readonly StringBuilder _sequenceBuilder = new StringBuilder();
		public StringBuilder SequenceBuilder
		{
			get
			{
				return _sequenceBuilder;
			}
		}

		public void Add(string sequenceString)
		{
			SequenceBuilder.Append(sequenceString);
		}
		
		private readonly string _name;
		public string Name
		{
			get
			{
				return _name;
			}
		}

		public string SequenceString
		{
			get
			{
				return _sequenceBuilder.ToString();
			}
		}
	}
}